package com.bot.nft.module.dc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bot.common.mybatis.core.BaseMapperPlus;
import com.bot.nft.module.dc.domain.DcSellInfo;
import com.bot.nft.module.dc.domain.vo.DcSellInfoVo;
import com.bot.nft.module.dc.domain.vo.DcSellNftVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author RenXiaoZheng
 * @since 2024-01-24
 */
public interface DcSellInfoMapper extends BaseMapperPlus<DcSellInfoMapper, DcSellInfo, DcSellInfoVo> {

    //分页查询寄售藏品信息
    Page<DcSellInfoVo> getSellInfo(@Param("keyword") String keyword, Page page);

    //查看寄售藏品订单信息
    DcSellInfoVo lookDcSell(String id);

    Page<DcSellNftVo> querySellNft(IPage<DcSellNftVo> page,
                                   @Param("nftName") String nftName,
                                   @Param("type") Integer nftType,
                                   @Param("partition") Integer partition,
                                   @Param("sort") Integer sort);

    DcSellNftVo viewSellNft(String nftId);

    Page<DcSellInfoVo> queryDcSellInfo(IPage<DcSellInfoVo> page, @Param("nftId")String nftId);


    DcSellInfoVo viewDcSellInfo(String id);


}
